//返回 可攻击的玩家
params ["_unit", "_dis", ["_dis_min", 0]];

private _group = group _unit;
private _ret = objNull;


private _list =  ((call fn_getPlayerRed)) select 
{
	(alive _x) 
	&& {_x distance _unit < _dis}
	&& {_x distance _unit > _dis_min}
	&& {(_x getVariable ["FAR_isUnconscious", 0]) == 0}
	&& {(_group knowsAbout _x) > 2.49}
};

if(count _list > 0) then
{_ret = selectRandom _list};

_ret

